package com.zhuidian.mothernote.activity;

import android.view.View;
import android.widget.ImageView;

import com.base.presenter.BasePresenter;
import com.zhuidian.mothernote.R;
import com.zhuidian.mothernote.bean.WelcomeBean;
import com.zhuidian.mothernote.global.BaseActivity;
import com.zhuidian.mothernote.presenter.WelcomePresenter;

public class WelcomeActivity extends BaseActivity {

    private ImageView iv_welcome;
    private WelcomePresenter welcomePresenter;

    @Override
    protected int inflateMainLayoutId() {
        return R.layout.activity_welcome;
    }

    @Override
    protected void initView(View view) {
        setTopGone();
        iv_welcome = (ImageView) view.findViewById(R.id.iv_welcome);
    }

    @Override
    protected void setListener() {

    }

    @Override
    protected BasePresenter getPresenter() {
        welcomePresenter = new WelcomePresenter();
//        welcomePresenter.getImageUrl("s");
        welcomePresenter.jumpToHomePage();
        return welcomePresenter;
    }

    public void setImageUrl(WelcomeBean welcomeBean) {
//        String iv_url = welcomeBean.getIv_url();
//        ImageLoader.getInstance().displayImage(iv_url, iv_banner, ImageUtil.getDisplayImageOptions(R.mipmap.default_banner));
    }
}
